<div class="zs-body" data-ng-init="formInit('cms_sensitive', {
		keyField:'id',
		randomFields:['id'],
		orderObject:{id:0} 
	}) && loadData('cms_sensitive');setConHei();">

    <div class="zs-map-tool">
		<div class="location">
			<a >首页</a>
			<i class="right-arr"></i>
			<a >门户配置</a>
			<i class="right-arr"></i>
			<a >敏感词</a>
		</div>
		<div class="option">
			<input type="button" class="zs-btn orange" value="新建" 
				ng-click="addRow('cms_sensitive') && openWindow('edit');"/>
			<input type="button" class="zs-btn orange" value="编辑" 
				ng-click="editRow('cms_sensitive', cms_sensitive.sRows[0]) && openWindow('edit')"/>
			<input type="button" class="zs-btn orange" value="删除 " 
				ng-click="delEntitys('cms_sensitive')"/>
		</div>
	</div>
	<div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
        	<div class="tool item" style="margin-left:6px;">
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" placeholder="敏感词" class="zs-input" ng-model="cms_sensitive.queryObject['sensitive:like']"/>
                </span>
            </div>
            <div class="operation item">
                <a class="ope-1" ng-click="loadData('cms_sensitive')"></a>
                <a class="ope-2"></a>
            </div>
            <div class="switch">
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                    	<table>
			                <thead>
			                    <tr>
			                        <th>
			                        	<input id="allCheckbox" type="checkbox"
			                        		ng-click="selectAll('cms_sensitive','allCheckbox');">
			                        </th>
			                        <th>敏感词</th>
			                        <th>替换词</th>
			                        <th>状态</th>
			                    </tr>
			                </thead>
			                <tbody>
			                    <tr ng-repeat="r in cms_sensitive.datas">
					                <td><input type="checkbox"
						                    ng-click="selectRow('cms_sensitive',r);"
						                    ng-model="r.selected" />
					                </td>
					                <td>
					                    <a ng-click="editRow('cms_sensitive',r) && openWindow('edit');">
					                        <label ng-bind="r.sensitive"></label>
					                    </a>
					                </td>
					                <td>
					                    <a ng-click="editRow('cms_sensitive',r) && openWindow('edit');">
					                        <label ng-bind="r.replace"></label>
					                    </a>
					                </td>
					                <td>
					                    <a ng-click="editRow('cms_sensitive',r) && openWindow('edit');">
					                        <label ng-bind="r.stateName"></label>
					                    </a>
					                </td>
					            </tr>
			                </tbody>
			            </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='cms_sensitive'></ag-Page>
                </div>
            </div>
        </div>
        <div ag-Window id="edit" title="敏感词编辑" width='650px' height='180px'>
	        <div class="zs-form-tab ibox">
	        	<form name="form" novalidate>
				    <table width="100%">
				        <tbody>
				        	<tr>
		                        <td class="text" width="20%">敏感词</td>
		                        <td class="left" width="80%"><input type="text"
		                            ng-model="cms_sensitive.editRow.sensitive"
		                            class="zs-input" required></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">替换词</td>
		                        <td class="left" width="80%"><input type="text"
		                            ng-model="cms_sensitive.editRow.replace"
		                            class="zs-input" required></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">*状态</td>
		                        <td class="left" width="80%">
		                        	<ag-Combobox class="zs-input" style="width:498px;height: 28px" 
										para="{ uDictionary:true,
												dictionary:'cms_valid'}"
										ng-model="cms_sensitive.editRow.state"
										text-Value="cms_sensitive.editRow.stateName"/>
		                       	</td>
		                    </tr>
				        </tbody>
				        <tfoot>
				            <tr>
				                <td colspan="2">
				                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
				                    	ng-click="formValidate(form) && save('cms_sensitive', cms_sensitive.editRow, saveCloseWindow)"/>
				                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
				                    	ng-click="closeWindow('edit')" />
				                </td>
				            </tr>
				        </tfoot>
				    </table>
				</form>
			</div>
	    </div>
	</div>
</div>